﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace VSM.Admin.UserManagement
{
    public interface IElement
    {
        // Properties
        string ID { get; }
    }
    public abstract class ElementBase : IElement
    {
        #region Fields
        protected string name;
        protected string id;
        #endregion

        #region Properties
        public string ID
        {
            get { return this.id; }
        }
        #endregion

        #region Name
        public string Name
        {
            get { return this.name; }
        }
        #endregion

        #region Methods
        public ElementBase()
        {
            this.id = string.Empty;
            this.name = string.Empty;
        }

        public ElementBase(string ID)
        {
            this.id = ID;
            this.name = string.Empty;
        }

        public ElementBase(string ID, string Name)
        {
            this.id = ID;
            this.name = Name;
        }
        #endregion
    }
}